home *** CD-ROM | disk | FTP | other *** search
/ Gigarom 4 / Mac Giga-ROM 4.0 - 1993.toast / FILES / COM / Q-Z / Terminal 2.2.sit / Terminal 2.2 / Project / Sources / MacHeadersMPW.c < prev    next >
MacBinary  |  1992-01-17  |  2.5 KB  |  [TEXT/MPS ]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Compact Compressed (Unix) (archive/compact) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, Fri Jan 17 12:00:00 1992, modified Fri Jan 17 12:00:00 1992, creator 'MPS ', type ASCII, 1856 bytes "MacHeadersMPW.c" , at 0x7c0 428 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[MPS ]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0f 4d 61 63 48 65 61 | 64 65 72 73 4d 50 57 2e |..MacHea|dersMPW.|
|00000010| 63 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |c.......|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 50 53 | 20 00 00 00 00 00 00 00 |.TEXTMPS| .......|
|00000050| 00 00 00 00 00 07 40 00 | 00 01 ac a5 9c bc 10 a5 |......@.|........|
|00000060| 9c bc 10 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 5f 9b 00 00 |........|...._...|
|00000080| 2f 2a 0d 09 54 65 72 6d | 69 6e 61 6c 20 32 2e 30 |/*..Term|inal 2.0|
|00000090| 0d 09 22 4d 61 63 48 65 | 61 64 65 72 73 4d 50 57 |.."MacHe|adersMPW|
|000000a0| 2e 63 22 0d 0d 09 43 6f | 6d 70 69 6c 65 20 74 68 |.c"...Co|mpile th|
|000000b0| 69 73 20 66 69 6c 65 2c | 20 69 74 20 77 69 6c 6c |is file,| it will|
|000000c0| 20 63 72 65 61 74 65 20 | 22 4d 61 63 48 65 61 64 | create |"MacHead|
|000000d0| 65 72 73 4d 50 57 22 0d | 09 63 6f 6e 74 61 69 6e |ersMPW".|.contain|
|000000e0| 69 6e 67 20 74 68 65 20 | 70 72 65 63 6f 6d 70 69 |ing the |precompi|
|000000f0| 6c 65 64 20 68 65 61 64 | 65 72 73 20 6e 65 65 64 |led head|ers need|
|00000100| 65 64 0d 2a 2f 0d 0d 0d | 23 69 6e 63 6c 75 64 65 |ed.*/...|#include|
|00000110| 20 3c 43 6f 6e 74 72 6f | 6c 73 2e 68 3e 0d 23 69 | <Contro|ls.h>.#i|
|00000120| 6e 63 6c 75 64 65 20 3c | 43 54 79 70 65 2e 68 3e |nclude <|CType.h>|
|00000130| 0d 23 69 6e 63 6c 75 64 | 65 20 3c 44 65 73 6b 2e |.#includ|e <Desk.|
|00000140| 68 3e 0d 23 69 6e 63 6c | 75 64 65 20 3c 44 65 76 |h>.#incl|ude <Dev|
|00000150| 69 63 65 73 2e 68 3e 0d | 23 69 6e 63 6c 75 64 65 |ices.h>.|#include|
|00000160| 20 3c 44 69 61 6c 6f 67 | 73 2e 68 3e 0d 23 69 6e | <Dialog|s.h>.#in|
|00000170| 63 6c 75 64 65 20 3c 44 | 69 73 6b 49 6e 69 74 2e |clude <D|iskInit.|
|00000180| 68 3e 0d 23 69 6e 63 6c | 75 64 65 20 3c 45 72 72 |h>.#incl|ude <Err|
|00000190| 6f 72 73 2e 68 3e 0d 23 | 69 6e 63 6c 75 64 65 20 |ors.h>.#|include |
|000001a0| 3c 46 69 6c 65 73 2e 68 | 3e 0d 23 69 6e 63 6c 75 |<Files.h|>.#inclu|
|000001b0| 64 65 20 3c 46 6f 6e 74 | 73 2e 68 3e 0d 23 69 6e |de <Font|s.h>.#in|
|000001c0| 63 6c 75 64 65 20 3c 4d | 65 6d 6f 72 79 2e 68 3e |clude <M|emory.h>|
|000001d0| 0d 23 69 6e 63 6c 75 64 | 65 20 3c 4d 65 6e 75 73 |.#includ|e <Menus|
|000001e0| 2e 68 3e 0d 23 69 6e 63 | 6c 75 64 65 20 3c 50 61 |.h>.#inc|lude <Pa|
|000001f0| 63 6b 61 67 65 73 2e 68 | 3e 0d 23 69 6e 63 6c 75 |ckages.h|>.#inclu|
|00000200| 64 65 20 3c 4f 53 55 74 | 69 6c 73 2e 68 3e 0d 23 |de <OSUt|ils.h>.#|
|00000210| 69 6e 63 6c 75 64 65 20 | 3c 52 65 73 6f 75 72 63 |include |<Resourc|
|00000220| 65 73 2e 68 3e 0d 23 69 | 6e 63 6c 75 64 65 20 3c |es.h>.#i|nclude <|
|00000230| 53 63 72 61 70 2e 68 3e | 0d 23 69 6e 63 6c 75 64 |Scrap.h>|.#includ|
|00000240| 65 20 3c 53 63 72 69 70 | 74 2e 68 3e 0d 23 69 6e |e <Scrip|t.h>.#in|
|00000250| 63 6c 75 64 65 20 3c 53 | 65 72 69 61 6c 2e 68 3e |clude <S|erial.h>|
|00000260| 0d 23 69 6e 63 6c 75 64 | 65 20 3c 53 65 74 4a 6d |.#includ|e <SetJm|
|00000270| 70 2e 68 3e 0d 23 69 6e | 63 6c 75 64 65 20 3c 53 |p.h>.#in|clude <S|
|00000280| 74 61 6e 64 61 72 64 46 | 69 6c 65 2e 68 3e 0d 23 |tandardF|ile.h>.#|
|00000290| 69 6e 63 6c 75 64 65 20 | 3c 53 74 64 41 72 67 2e |include |<StdArg.|
|000002a0| 68 3e 0d 23 69 6e 63 6c | 75 64 65 20 3c 53 74 72 |h>.#incl|ude <Str|
|000002b0| 69 6e 67 2e 68 3e 0d 23 | 69 6e 63 6c 75 64 65 20 |ing.h>.#|include |
|000002c0| 3c 53 74 72 69 6e 67 73 | 2e 68 3e 0d 23 69 6e 63 |<Strings|.h>.#inc|
|000002d0| 6c 75 64 65 20 3c 53 79 | 73 45 71 75 2e 68 3e 0d |lude <Sy|sEqu.h>.|
|000002e0| 23 69 6e 63 6c 75 64 65 | 20 3c 54 6f 6f 6c 55 74 |#include| <ToolUt|
|000002f0| 69 6c 73 2e 68 3e 0d 23 | 69 6e 63 6c 75 64 65 20 |ils.h>.#|include |
|00000300| 3c 54 79 70 65 73 2e 68 | 3e 0d 23 69 6e 63 6c 75 |<Types.h|>.#inclu|
|00000310| 64 65 20 3c 57 69 6e 64 | 6f 77 73 2e 68 3e 0d 0d |de <Wind|ows.h>..|
|00000320| 2f 2a 20 4d 61 63 72 6f | 73 20 6e 6f 74 20 66 6f |/* Macro|s not fo|
|00000330| 75 6e 64 20 69 6e 20 4d | 50 57 2c 20 62 75 74 20 |und in M|PW, but |
|00000340| 75 73 65 64 20 62 79 20 | 54 48 49 4e 4b 20 43 20 |used by |THINK C |
|00000350| 2a 2f 0d 0d 2f 2a 20 74 | 79 70 65 64 65 66 20 75 |*/../* t|ypedef u|
|00000360| 6e 73 69 67 6e 65 64 20 | 63 68 61 72 20 42 79 74 |nsigned |char Byt|
|00000370| 65 3b 20 2a 2f 09 2f 2a | 20 49 73 20 6e 6f 77 20 |e; */./*| Is now |
|00000380| 64 65 66 69 6e 65 64 20 | 69 6e 20 22 54 79 70 65 |defined |in "Type|
|00000390| 73 2e 68 22 20 6f 66 20 | 4d 50 57 20 33 2e 32 20 |s.h" of |MPW 3.2 |
|000003a0| 2a 2f 0d 65 6e 75 6d 20 | 7b 20 46 41 4c 53 45 2c |*/.enum |{ FALSE,|
|000003b0| 20 54 52 55 45 20 7d 3b | 0d 23 64 65 66 69 6e 65 | TRUE };|.#define|
|000003c0| 20 74 6f 70 4c 65 66 74 | 28 72 29 09 28 28 28 50 | topLeft|(r).(((P|
|000003d0| 6f 69 6e 74 20 2a 29 20 | 26 28 72 29 29 5b 30 5d |oint *) |&(r))[0]|
|000003e0| 29 0d 23 64 65 66 69 6e | 65 20 62 6f 74 52 69 67 |).#defin|e botRig|
|000003f0| 68 74 28 72 29 09 28 28 | 28 50 6f 69 6e 74 20 2a |ht(r).((|(Point *|
|00000400| 29 20 26 28 72 29 29 5b | 31 5d 29 0d 23 64 65 66 |) &(r))[|1]).#def|
|00000410| 69 6e 65 20 43 74 6f 50 | 73 74 72 09 09 63 32 70 |ine CtoP|str..c2p|
|00000420| 73 74 72 0d 23 64 65 66 | 69 6e 65 20 50 74 6f 43 |str.#def|ine PtoC|
|00000430| 73 74 72 09 09 70 32 63 | 73 74 72 0d 0d 2f 2a 20 |str..p2c|str../* |
|00000440| 4c 6f 77 20 6d 65 6d 6f | 72 79 20 67 6c 6f 62 61 |Low memo|ry globa|
|00000450| 6c 73 20 61 72 65 20 72 | 65 61 6c 20 76 61 72 69 |ls are r|eal vari|
|00000460| 61 62 6c 65 73 20 69 6e | 20 54 48 49 4e 4b 20 43 |ables in| THINK C|
|00000470| 2c 0d 62 75 74 20 61 72 | 65 20 6f 6e 6c 79 20 61 |,.but ar|e only a|
|00000480| 64 64 72 65 73 73 20 63 | 6f 6e 73 74 61 6e 74 73 |ddress c|onstants|
|00000490| 20 69 6e 20 4d 50 57 20 | 2a 2f 0d 0d 23 64 65 66 | in MPW |*/..#def|
|000004a0| 69 6e 65 20 54 69 6d 65 | 09 09 09 28 2a 28 6c 6f |ine Time|...(*(lo|
|000004b0| 6e 67 20 2a 29 30 78 32 | 30 43 29 0d 23 64 65 66 |ng *)0x2|0C).#def|
|000004c0| 69 6e 65 20 54 69 63 6b | 73 09 09 09 28 2a 28 6c |ine Tick|s...(*(l|
|000004d0| 6f 6e 67 20 2a 29 30 78 | 31 36 41 29 0d 23 64 65 |ong *)0x|16A).#de|
|000004e0| 66 69 6e 65 20 53 43 43 | 52 64 09 09 09 28 2a 28 |fine SCC|Rd...(*(|
|000004f0| 50 74 72 20 2a 29 30 78 | 31 44 38 29 0d 23 64 65 |Ptr *)0x|1D8).#de|
|00000500| 66 69 6e 65 20 53 46 53 | 61 76 65 44 69 73 6b 09 |fine SFS|aveDisk.|
|00000510| 09 28 2a 28 73 68 6f 72 | 74 20 2a 29 30 78 32 31 |.(*(shor|t *)0x21|
|00000520| 34 29 0d 23 64 65 66 69 | 6e 65 20 43 75 72 44 69 |4).#defi|ne CurDi|
|00000530| 72 53 74 6f 72 65 09 09 | 28 2a 28 6c 6f 6e 67 20 |rStore..|(*(long |
|00000540| 2a 29 30 78 33 39 38 29 | 0d 23 64 65 66 69 6e 65 |*)0x398)|.#define|
|00000550| 20 43 75 72 53 74 61 63 | 6b 42 61 73 65 09 28 2a | CurStac|kBase.(*|
|00000560| 28 50 74 72 20 2a 29 30 | 78 39 30 38 29 0d 23 64 |(Ptr *)0|x908).#d|
|00000570| 65 66 69 6e 65 20 47 72 | 61 79 52 67 6e 09 09 09 |efine Gr|ayRgn...|
|00000580| 28 2a 28 52 67 6e 48 61 | 6e 64 6c 65 20 2a 29 30 |(*(RgnHa|ndle *)0|
|00000590| 78 39 45 45 29 0d 23 64 | 65 66 69 6e 65 20 4d 65 |x9EE).#d|efine Me|
|000005a0| 6d 45 72 72 09 09 09 28 | 2a 28 73 68 6f 72 74 20 |mErr...(|*(short |
|000005b0| 2a 29 30 78 32 32 30 29 | 0d 23 64 65 66 69 6e 65 |*)0x220)|.#define|
|000005c0| 20 4d 42 61 72 48 65 69 | 67 68 74 09 09 28 2a 28 | MBarHei|ght..(*(|
|000005d0| 73 68 6f 72 74 20 2a 29 | 30 78 42 41 41 29 0d 0d |short *)|0xBAA)..|
|000005e0| 2f 2a 20 54 68 65 20 51 | 75 69 63 6b 44 72 61 77 |/* The Q|uickDraw|
|000005f0| 20 67 6c 6f 62 61 6c 20 | 76 61 72 69 61 62 6c 65 | global |variable|
|00000600| 73 20 73 74 72 75 63 74 | 75 72 65 20 64 6f 65 73 |s struct|ure does|
|00000610| 20 6e 6f 74 0d 65 78 69 | 73 74 20 69 6e 20 54 48 | not.exi|st in TH|
|00000620| 49 4e 4b 20 43 2c 20 73 | 6f 20 75 73 65 20 61 20 |INK C, s|o use a |
|00000630| 6d 61 63 72 6f 20 74 6f | 20 67 65 6e 65 72 61 74 |macro to| generat|
|00000640| 65 20 74 68 65 20 6e 61 | 6d 65 73 20 2a 2f 0d 0d |e the na|mes */..|
|00000650| 23 64 65 66 69 6e 65 20 | 51 44 28 78 29 09 28 71 |#define |QD(x).(q|
|00000660| 64 2e 78 29 0d 0d 2f 2a | 0d 09 41 74 74 65 6e 74 |d.x)../*|..Attent|
|00000670| 69 6f 6e 3a 0d 09 0d 09 | a5 20 69 6e 74 09 09 34 |ion:....|. int..4|
|00000680| 20 62 79 74 65 73 20 69 | 6e 20 4d 50 57 20 61 6e | bytes i|n MPW an|
|00000690| 64 20 32 20 62 79 74 65 | 73 20 69 6e 20 54 48 49 |d 2 byte|s in THI|
|000006a0| 4e 4b 20 43 0d 09 a5 20 | 5c 72 09 09 4c 69 6e 65 |NK C... |\r..Line|
|000006b0| 20 66 65 65 64 20 69 6e | 20 4d 50 57 2c 20 63 61 | feed in| MPW, ca|
|000006c0| 72 72 69 61 67 65 20 72 | 65 74 75 72 6e 20 69 6e |rriage r|eturn in|
|000006d0| 20 54 48 49 4e 4b 20 43 | 0d 09 a5 20 5c 6e 09 09 | THINK C|... \n..|
|000006e0| 43 61 72 72 69 61 67 65 | 20 72 65 74 75 72 6e 20 |Carriage| return |
|000006f0| 69 6e 20 4d 50 57 2c 20 | 6c 69 6e 65 20 66 65 65 |in MPW, |line fee|
|00000700| 64 20 69 6e 20 54 48 49 | 4e 4b 20 43 0d 09 a5 20 |d in THI|NK C... |
|00000710| 63 68 61 72 09 09 34 20 | 62 79 74 65 73 20 6f 6e |char..4 |bytes on|
|00000720| 20 73 74 61 63 6b 20 69 | 66 20 70 61 73 73 65 64 | stack i|f passed|
|00000730| 20 74 6f 20 61 20 66 75 | 6e 63 74 69 6f 6e 0d 09 | to a fu|nction..|
|00000740| a5 20 73 68 6f 72 74 09 | 09 34 20 62 79 74 65 73 |. short.|.4 bytes|
|00000750| 20 6f 6e 20 73 74 61 63 | 6b 20 69 66 20 70 61 73 | on stac|k if pas|
|00000760| 73 65 64 20 74 6f 20 61 | 20 66 75 6e 63 74 69 6f |sed to a| functio|
|00000770| 6e 0d 2a 2f 0d 0d 2f 2a | 20 50 72 65 63 6f 6d 70 |n.*/../*| Precomp|
|00000780| 69 6c 65 20 61 6c 6c 20 | 64 65 66 69 6e 69 74 69 |ile all |definiti|
|00000790| 6f 6e 73 20 2a 2f 0d 0d | 23 70 72 61 67 6d 61 20 |ons */..|#pragma |
|000007a0| 64 75 6d 70 20 22 3a 28 | 4f 62 6a 65 63 74 73 29 |dump ":(|Objects)|
|000007b0| 3a 4d 61 63 48 65 61 64 | 65 72 73 4d 50 57 22 0d |:MacHead|ersMPW".|
|000007c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000800| 00 00 01 00 00 00 01 6e | 00 00 00 6e 00 00 00 3e |.......n|...n...>|
|00000810| 69 6e 63 6c 75 64 65 20 | 3c 45 76 65 6e 74 73 2e |include |<Events.|
|00000820| 68 3e 20 2a 2f 0d 2f 2a | 20 23 69 6e 63 6c 75 64 |h> */./*| #includ|
|00000830| 0f 4d 61 63 48 65 61 64 | 65 72 73 4d 50 57 2e 63 |.MacHead|ersMPW.c|
|00000840| 02 00 00 00 50 61 72 74 | 53 49 54 78 00 00 00 00 |....Part|SITx....|
|00000850| 00 00 50 61 72 74 53 49 | 54 78 00 00 00 00 00 00 |..PartSI|Tx......|
|00000860| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000870| 00 00 a7 d3 7e 27 00 00 | 00 00 00 00 01 ac 74 2e |....~'..|......t.|
|00000880| 68 3e 20 2a 2f 0d 23 69 | 6e 63 6c 75 64 65 20 3c |h> */.#i|nclude <|
|00000890| 46 6f 6e 74 73 2e 68 3e | 0d 2f 2a 20 23 69 6e 63 |Fonts.h>|./* #inc|
|000008a0| 6c 75 64 65 20 3c 47 72 | 61 66 33 44 2e 68 3e 20 |lude <Gr|af3D.h> |
|000008b0| 2a 2f 0d 2f 2a 20 23 69 | 6e 63 6c 75 64 65 20 3c |*/./* #i|nclude <|
|000008c0| 48 79 70 65 72 58 43 6d | 64 2e 68 3e 20 2a 2f 0d |HyperXCm|d.h> */.|
|000008d0| 2f 2a 20 23 69 6e 63 6c | 75 64 65 20 3c 49 4f 43 |/* #incl|ude <IOC|
|000008e0| 74 6c 2e 68 3e 20 2a 2f | 0d 2f 2a 20 23 69 6e 63 |tl.h> */|./* #inc|
|000008f0| 6c 75 64 65 20 3c 4c 69 | 6d 69 74 73 2e 68 3e 20 |lude <Li|mits.h> |
|00000900| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 6c 65 2c |...H..Mo|naco.le,|
|00000910| 20 69 74 20 77 69 6c 6c | 20 63 72 65 61 74 65 20 | it will| create |
|00000920| 22 4d 61 63 48 65 00 06 | 00 04 00 2a 00 03 01 dd |"MacHe..|...*....|
|00000930| 02 7d 00 b2 00 51 01 cb | 02 73 a3 61 a1 2a 00 00 |.}...Q..|.s.a.*..|
|00000940| 00 00 00 00 00 00 00 00 | 00 00 01 00 00 00 00 1e |........|........|
|00000950| 00 2a 00 03 01 dd 02 7d | 00 b2 00 51 01 cb 02 73 |.*.....}|...Q...s|
|00000960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000970| 01 00 00 00 01 6e 00 00 | 00 6e 00 00 00 3e 00 53 |.....n..|.n...>.S|
|00000980| 71 1c 04 0c 00 00 00 1c | 00 3e 00 00 4d 50 53 52 |q.......|.>..MPSR|
|00000990| 00 01 00 0a 03 ed ff ff | 00 00 00 00 00 00 00 00 |........|........|
|000009a0| 03 f0 ff ff 00 00 00 4c | 00 55 62 90 00 00 00 00 |.......L|.Ub.....|
|000009b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+